import App from './App.vue'
import api from './api/api'
import store from './store/store'
// import share from './utils/share.js'
// import um from './api/um'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// Vue.mixin(share)
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$api = api; 
  // app.config.globalProperties.$um  =  um;

  app.use(store)
  return {
    app
  }
}
// #endif